package org.colafries.admin.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author colafries
 * @version v1.0
 * @ClassName DataSourceReqVO
 * @Description
 * @date Created in 2024/3/14
 **/
@Data
@Accessors(chain = true)
public class DataBaseReqVO {

    @ApiModelProperty(value = "数据源id", dataType = "Integer", example = "1")
    private Integer databaseId;
    /**
     * 数据源类型编码
     */
    @ApiModelProperty(value = "数据源类型编码", dataType = "Integer", example = "1 mysql 2 es 3 starrocks 4 clickhouse")
    private Integer dbTypeCode;
    /**
     * 数据源名称
     */
    @ApiModelProperty(value = "数据源名称", dataType = "String", example = "xx")
    private String dbName;
    /**
     * 数据源地址
     */
    @ApiModelProperty(value = "数据源地址", dataType = "String", example = "localhost")
    private String dbHost;
    /**
     * 端口号
     */
    @ApiModelProperty(value = "端口号", dataType = "String", example = "3306")
    private String dbPort;
    /**
     * 数据库连接url参数
     */
    @ApiModelProperty(value = "数据库连接url参数", dataType = "String", example = "characterEncoding=utf-8&serverTimezone=GMT")
    private String dbUrlArgs;
    /**
     * 账号
     */
    @ApiModelProperty(value = "账号", dataType = "String", example = "root")
    private String dbUser;
    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", dataType = "String", example = "123456")
    private String dbPwd;
    /**
     * 数据源描述
     */
    @ApiModelProperty(value = "数据源描述", dataType = "String", example = "这是一个数据源表述")
    private String dbDesc;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人", dataType = "String", example = "ann")
    private String updateUser;

    @ApiModelProperty(value = "schema名称", dataType = "String", example = "colafries")
    private String schemaName;

    @ApiModelProperty(value = "表名称", dataType = "String", example = "t_database")
    private String tableName;
}
